﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;


namespace LyyCMS.Web.Areas.Dash.Controllers
{
    [Area("Dash")]
    [Route("Dash/[controller]/[action]")]
    [Filters.SignFilter]
    public class AdminController : Controller
    {
        public IActionResult Index()
        {
            
            try
            {
                #region 登录名 Session.GetString 需要Microsoft.AspNetCore.Http
                var UserName = HttpContext.Session.GetString(LyyCMS.Service.LyyCMSConsts.ADMIN_NAME);

                #endregion

                ViewBag.UserName = UserName;
            }
            catch
            {
                ViewBag.UserName = "None";
            }
            

            return View();
        }
    }
}